package com.qingbo.wu.oss.service;

import com.qingbo.wu.oss.adapter.StorageAdapter;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: qingbo.wu
 * @Date: 2024/6/1 17:55
 * @Description:
 */
@Service
public class FileService {

    private StorageAdapter storageAdapter;

    public FileService(StorageAdapter storageAdapter){
        this.storageAdapter = storageAdapter;
    }

    /**
     * 获取所有bucket桶
     * @return
     */
    public List<String> getAllBuckets(){
        return storageAdapter.getAllBuckets();
    }
}
